<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store,no-cache">
    <meta name="Handheldfriendly" content="true">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>抢购详情</title>
    <link rel="stylesheet" href="{MODULE_URL}template/mobile/style/style1/static/css/css_1.css">
    <link rel="stylesheet" href="{MODULE_URL}template/mobile/style/style1/static/css/reset.css">
    <link rel="stylesheet" href="{MODULE_URL}template/mobile/style/style1/static/css/s.css">
    <script src="{MODULE_URL}template/mobile/style/style1/static/js/jquery-1.7.1.min.js"></script>
    <script src="{MODULE_URL}template/mobile/style/style1/static/js/dp.js"></script>
    <script src="{MODULE_URL}template/mobile/style/style1/static/js/layer.js"></script>
    <script>
    function bd_encrypt(gg_lat, gg_lon) // 百度地图测距偏差 问题修复
    {
        var x_pi = 3.14159265358979324 * 3000.0 / 180.0;
        var x = gg_lon;
        var y = gg_lat;
        var z = Math.sqrt(x * x + y * y) + 0.00002 * Math.sin(y * x_pi);
        var theta = Math.atan2(y, x) + 0.000003 * Math.cos(x * x_pi);
        var bd_lon = z * Math.cos(theta) + 0.0065;
        var bd_lat = z * Math.sin(theta) + 0.006;
        dingwei("{php echo $this->createMobileUrl('business',array('op' => 'list'))}", bd_lat, bd_lon);
    }
    navigator.geolocation.getCurrentPosition(function(position) {
        bd_encrypt(position.coords.latitude, position.coords.longitude);
    });
    </script>
</head>

<body>
    <header>
        <a href="{php echo $this->createMobileUrl('business',array('op' => 'list'))}"><i class="icon-goback"></i></a>
        <div class="title">抢购详情</div>
        <!-- <i id="commentA"><a class="share" id="shareIco" href="javascript:(0);"></a></i> -->
    </header>
    <!-- <div class="bdcolor">
        <div class="bdcolor_bg"></div>
        <div class="bdsharebuttonbox bdshare-button-style0-32" data-tag="share_1" data-bd-bind="1457104405117">
            <a class="bds_weixin" data-cmd="weixin" title="分享到微信">微信</a>
            <a class="bds_qzone" data-cmd="qzone" href="#" title="分享到QQ空间">QQ空间</a>
            <a class="bds_sqq" data-cmd="sqq" title="分享到QQ好友">腾讯QQ</a>
            <a class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博">腾讯微博</a>
            <a class="bds_tsina" data-cmd="tsina" title="分享到新浪微博">新浪微博</a>
            <div class="bd-share-popup-footer">
                <a class="bd-share-popup-close" onclick="$('.bdcolor').hide();" href="javascript:void(0);">取消</a>
            </div>
        </div>
    </div> -->
    <div id="sell" class="page-center-box">
        <div id="scroll">
            <!-- BANNER图 -->
            <div class="banner">
                <a href="" target="_blank">
                    <img src="{php echo tomedia($item['thumb'])}" width="100%" height="100%">
                    <div class="shade"></div>
                    <div class="shade-content order-ti">
                        <p><span style="color: #fff;" class="left overflow_clear">{$item['title']}</span><span style="color: #fff;" class="right order-font">已售{$item['sold']}</span></p>
                    </div>
                </a>
            </div>
            <!-- 评分 -->
            <div class="point">
                <div class="point-left">
                    <div>
                        <span class="mall-price order-money"><small>￥</small>{$item['marketprice']}</span>
                        <del class="black9">￥{$item['productprice']}</del>
                    </div>
                </div>
                <div class="point-right">
                    <a href="{php echo $this->createMobileUrl('business',array('op' => 'coupon','operation' => 'confirm','gid' => $item['id'],'dpid' => $dp['id']))}" class="btn">立即购买</a>
                </div>
            </div>
            <!-- <div class="order-style">
                <ul>
                    <li><i class="ico_1"></i><p>支持随时退</p></li>
                    <li class="on"><i class="ico_2"></i><p>过期自动退</p></li>
                    <li class="on"><i class="ico_3"></i><p>免预约</p></li>
                    <div class="clear"></div>
                </ul>
            </div> -->
            <!-- 地址 -->
            <div class="order-adress">
                <div class="order-shop">
                    <div class="wz">
                        <div>
                            <a href="{php echo $this->createMobileUrl('business',array('op' => 'coupon','operation' => 'detail','id' => $item['dpid']))}" class="order-name">{$dp['sjname']}</a>
                            <!-- <span class="point-star"><span style="width: 0.7rem;"></span></span> -->
                        </div>
                        <div>
                            <a href="" class="fl black6">{$dp['address']}</a>
                            <span class="fr black6"><i class="locatIco"></i>{$dp['distance']}km</span>
                            <div class="clear"></div>
                        </div>
                    </div>
                    <a class="tel" href="tel:{$dp['mobile']}"></a>
                </div>
                <!-- <div class="mall-our">
                    <a class="mall-fen" href=""><em class="ico ico_1"></em>到这去</a>
                    <a class="mall-fen" href=""><em class="ico ico_2"></em>关注商家</a> 
                </div> -->
            </div>
            <!--分店地址开始-->
            <script>
            $(document).ready(function() {
                $(".fendianAddr_switch .fendianAddr_list").each(function(e) {
                    $(this).click(function() {
                        $(this).parent().find(".fendianAddr_list").removeClass("on");
                        $(this).addClass("on");
                        $(".fendianAddr_nr_box .fendianAddr_nr").each(function(h) {
                            if (e == h) {
                                $(this).parent().find(".fendianAddr_nr").hide();
                                $(this).show();
                            } else {
                                $(this).hide();
                            }
                        });
                    });
                });
            });
            </script>
            <!--分店地址结束-->
            <div class="spread-intro">
                <ul>
                    <li class="spread-tui">抢购详情</li>
                    <li class="li_table">
                        {$item['content']}
                    </li>
                </ul>
            </div>
            <div class="spread-intro">
                <ul>
                    <li class="spread-tui">购买须知</li>
                    <li>
                        {$item['description']}
                    </li>
                </ul>
            </div>
            <div class="spread-intro">
                <ul>
                    <li class="spread-tui">本店其他抢购</li>
                    {loop $list $goods}
                    <li>
                        <div class="left"><span class="order-prices" style="color:#ff4200;">￥{$goods['marketprice']}</span>
                            <del style="color:#666666;">￥{$goods['productprice']}</del>
                            <a href="{php echo $this->createMobileUrl('business',array('op' => 'coupon','operation' => 'detail','gid' => $goods['id']))}" title="{$goods['title']}"><span>{$goods['title']}</span></a>
                        </div>
                        <span class="right">》</span>
                        <div class="clear"></div>
                    </li>
                    {/loop}
                </ul>
            </div>
        </div>
    </div>
    <div id="loading">
        <div class="bao_loading">正在加载中....</div>
    </div>
    <div class="blank">&nbsp;</div>
    <div style="display: none;" class="topUp"></div>
    <script>
    $(document).ready(function() {
        $(window).scroll(function() {
            if ($(window).scrollTop() > 100) {
                $(".topUp").show();
            } else {
                $(".topUp").hide();
            }
        });
        $(".topUp").click(function() {
            $("html,body").animate({
                scrollTop: 0
            }, 200);
        });
        $(".foot_more").click(function() {
            $(this).find(".foot_more_pull").toggle();
        });
    });
    </script>
    <iframe id="baocms_frm" name="baocms_frm" style="display:none;"></iframe>
    <!--定义编辑器里的table属性开始-请勿删除！！！！-->
    <style>
    .li_table table {
        width: 100%;
        text-align: center;
    }
    

    </style>
    <!--定义编辑器里的table属性结束-请勿删除！！！！-->
    {template 'style/style1/footer'}
</body>

</html>
